home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 7
/
FM Towns Free Software Collection 7.iso
/
t_os
/
gpen32k
/
source.exe
/
LIB
/
OSRC
/
OCIRCLE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-22
|
446b
|
29 lines
/*
グラフィック標準関数
*/
#include <math.h>
#include <EGB.H>
extern char work[];
void circle(int x, int y, int r, int wm, int c )
{
char pa[64];
EGB_paintMode( work, wm );
EGB_color( work, 0, c );
EGB_color( work, 2, c );
if (r!=0)
{
WORD(pa ) = x;
WORD(pa+2) = y;
WORD(pa+4) = r;
EGB_circle( work, pa );
} else {
WORD(pa ) = 1;
WORD(pa+2) = x;
WORD(pa+4) = y;
EGB_pset( work, pa );
}
}